# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
#   include emiconfig::junodqm
class emiconfig::junodqm {
  file{ "/root/user.txt":
    mode         =>  '600',
    owner        =>  'root',
    group        =>  'root',
    source       =>  "puppet:///modules/localaccounts/user.txt",
  } -> 
  file{ "/root/group.txt":
    mode         =>  '600',
    owner        =>  'root',
    group        =>  'root',
    source       =>  "puppet:///modules/localaccounts/group.txt",
  } ->
  file {"/etc/glidein/":
    ensure   => "directory",
    owner    => 0,
    group    => 0,
    mode     => '0600',
  }->
  cron{"creare_passwd":
    command      => "cat /etc/passwd /root/user.txt | grep -v \"grid user\" > /etc/glidein/ihep_glidein_user;  cat /etc/group /root/group.txt > /etc/glidein/ihep_glidein_group",
    minute  => '*/5',
    hour    => '*',
    month   => '*',
  }
}
